@extends('frontend/layouts/bootstrap')

@section('content')
<div>
    <span style="font-size: 31.5px;  line-height: 60px;  margin: 10px 0;  font-family: inherit;  font-weight: bold;  color: inherit;  text-rendering: optimizelegibility;  -webkit-margin-before: 0.83em;  -webkit-margin-after: 0.83em;  -webkit-margin-start: 0px;  -webkit-margin-end: 0px;">Show MoneyExchange [{{  $money_exchange->id }}]</span>
    {{ link_to_route('car_balance.money_exchange.index', 'Back MoneyExchange list', null, array('class' => 'btn btn-info', 'style' => 'float: right; margin: 20px 0 10px 0;')) }}
</div>

<div class="row-fluid">
<table class="table table-bordered">
    <col width="35%">
    <col width="60%">
    <tbody>
        <tr> <th style="background-color: #f0f0f0;">Id</th> <td>{{  $money_exchange->id }}</td> </tr>
        <tr> <th style="background-color: #f0f0f0;">Recieve_Date</th> <td>{{  $money_exchange->recieve_date }}</td> </tr>
        <tr>
            <th style="background-color: #f0f0f0;">Customer</th>
            <td>{{  $money_exchange->customer()->first() ? link_to_route('car_balance.customer.show', $money_exchange->customer()->first()->name, array('id' => $money_exchange->customer()->first()->id), array()) : 'NULL' }}</td>
        </tr>
        <tr> <th style="background-color: #f0f0f0;">Amount_Tugrug</th> <td>{{  $money_exchange->amount_tugrug ? number_format($money_exchange->amount_tugrug, 0) : 0; }}</td> </tr>
        <tr> <th style="background-color: #f0f0f0;">Exchange Rate</th> <td>{{  $money_exchange->exchange_rate ? number_format($money_exchange->exchange_rate, 2) : 0; }}</td> </tr>
        <tr> <th style="background-color: #f0f0f0;">Amount_Yen</th> <td>{{  $money_exchange->amount_yen ? number_format($money_exchange->amount_yen, 0) : 0; }}</td> </tr>
        <tr> <th style="background-color: #f0f0f0;">Amount</th> <td>{{  $money_exchange->amount ? number_format($money_exchange->amount, 0) : 0; }}</td> </tr>
        <tr>
            <td colspan="2">
                <a href="{{  route('car_balance.money_exchange.edit', $money_exchange->id) }}" class="btn btn-mini btn-info">Edit</a>
                <a href="{{  route('car_balance.money_exchange.delete', $money_exchange->id) }}" class="btn btn-mini btn-danger">Delete</a>
            </td>
        </tr>
    </tbody>
</table>
@stop